<template>
  <div>
    <button @click="handleClick">给兄弟index1组件传值</button>
  </div>
</template>

<script setup>
    import { ref, reactive, toRefs, onBeforeMount, onMounted, watchEffect, computed } from 'vue';
    import emitter from '../../utils/bus';
    const handleClick = ()=>{
      emitter.emit('send', '我是index发送的数据');
    }
</script>
<style scoped>
    
</style>